#include <iostream>
#include <string>

using namespace std;

int main()
{
    string s;
    char c;
    while ((c = cin.get()) != '!')
    {
        s += c;
    }
    cout << s << endl;
}